package com.softline.documentsmall.dao;

import com.softline.documentsmall.entity.IssuesAnswer;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author zhongweicheng
 * @date 2020/8/28 9:30
 */
public interface IssuesAnswerMapper {


    List<IssuesAnswer> findByParams(@Param("id") Integer id,@Param("issuesId")Integer issuesId, @Param("content")String content,@Param("passportId")String passportId,@Param("approveState")Integer approveState,@Param("isDelete")Integer isDelete,@Param("currPage")Integer currPage,@Param("pageSize")Integer pageSize,@Param("startDate")String startDate,@Param("endDate")String endDate);

    void insertIssueAnswer(IssuesAnswer hotIssues);

    void updateIssueAnswerById(IssuesAnswer hotIssues);

    void softDeleteIssueAnswerById(Integer id);

    void updateApproveStateById(Map<String,Object> map);

    void softDeletIssueAnswerByIssueId(Integer issueId);

    Integer findApproveStateById(@Param("id")Integer id);
}
